//
//  LBNavViewController.m
//  LBWeibo
//
//  Created by lin on 15/7/6.
//  Copyright (c) 2015年 lin. All rights reserved.
//

#import "LBNavViewController.h"

@interface LBNavViewController ()

@end

@implementation LBNavViewController

+(void)initialize{
    UIBarButtonItem *barButtonItem = [UIBarButtonItem appearance];
    NSMutableDictionary *normalAttributes = [NSMutableDictionary dictionary];
    normalAttributes[NSForegroundColorAttributeName]=[UIColor orangeColor];
    normalAttributes[NSFontAttributeName]= [UIFont systemFontOfSize:15];
    [barButtonItem setTitleTextAttributes:normalAttributes forState:UIControlStateNormal];
    
    NSMutableDictionary *selectedAttributes = [NSMutableDictionary dictionary];
    selectedAttributes[NSForegroundColorAttributeName]=[UIColor blackColor];
    selectedAttributes[NSFontAttributeName]= [UIFont systemFontOfSize:15];
    [barButtonItem setTitleTextAttributes:selectedAttributes forState:UIControlStateHighlighted];
    
    UINavigationBar *navBar = [UINavigationBar appearance];
    navBar.barTintColor = [UIColor colorWithWhite:1 alpha:0.5];
    [navBar setBarTintColor:[UIColor colorWithWhite:1 alpha:0.5]];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
